
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PLAN
{

	public partial class PLAN_PURCHASEModel:Virtual_PLAN_PURCHASEModel
	{
		
	}
	public class Virtual_PLAN_PURCHASEModel
	{
		[Display(Name = "燃煤采购计划编号")]
		public virtual string PURCHASE_ID { get; set; }
		[Display(Name = "燃煤生产计划编号")]
		public virtual string PRODUCTION_ID { get; set; }
		[Display(Name = "采购计划单号")]
		public virtual string ODD_NUMBERS { get; set; }
		[Display(Name = "年度")]
		public virtual Nullable<int> YEAR { get; set; }
		[Display(Name = "月度")]
		public virtual Nullable<int> MONTH { get; set; }
        public virtual string YearMonth
        {
            get
            {
                return YEAR.ToString() + MONTH.ToString().PadLeft(2,'0');
            }
        }
        [Display(Name = "是否年度计划（枚举PurchasePlanType）")]
		public virtual Nullable<int> TYPE { get; set; }
		[Display(Name = "计划发电量")]
		public virtual Nullable<decimal> POWERC_OUNT { get; set; }
		[Display(Name = "计划供热量")]
		public virtual Nullable<decimal> HEAT_COUNT { get; set; }
		[Display(Name = "天然煤发热量")]
		public virtual Nullable<decimal> NATURAL_COAL { get; set; }
		[Display(Name = "当前库存")]
		public virtual Nullable<decimal> CURRENT_STOCK { get; set; }
		[Display(Name = "预计耗煤量")]
		public virtual Nullable<decimal> ESTIMATE_COAL { get; set; }
		[Display(Name = "预计期初库存")]
		public virtual Nullable<decimal> ESTIMATE_STOCK_BEGIN { get; set; }
		[Display(Name = "预计期末库存")]
		public virtual Nullable<decimal> ESTIMATE_STOCK_END { get; set; }
		[Display(Name = "其他需煤量")]
		public virtual Nullable<decimal> OTHER_NEEDS { get; set; }
		[Display(Name = "生产需求量")]
		public virtual Nullable<decimal> PRODUCTTION_NEEDS { get; set; }
		[Display(Name = "计划采购量")]
		public virtual Nullable<decimal> PLANNED_PURCHASE { get; set; }
		[Display(Name = "燃料总费用")]
		public virtual Nullable<decimal> TOTAL_COST { get; set; }
		[Display(Name = "备注")]
		public virtual string MARK { get; set; }
		[Display(Name = "编制人")]
		public virtual string COMPILE_USER { get; set; }
        [Display(Name = "编制人")]
        public virtual string COMPILE_USERNAME { get; set; }
        [Display(Name = "编制时间(YYYY-MM-DD HH24:MI:SS)")]
		public virtual Nullable<System.DateTime> COMPILE_TIME { get; set; }
		[Display(Name = "审批流程模板编号")]
		public virtual string TEMPLATE_ID { get; set; }
		[Display(Name = "审批状态（枚举ApprovalStatus）")]
		public virtual Nullable<int> APPROVAL_STATUS { get; set; }
		}
}
